package com.sunfield.windpower.http;

import android.app.Activity;

import com.sunfield.baseframe.http.HttpHeader;
import com.sunfield.windpower.MyApplication;
import com.sunfield.windpower.activity.LoginActivity;


/**
 * Created by wangxl on 2016/11/29.
 */
public class HttpHeadProviderImpl implements HttpHeader.HttpHeadProvider {
    @Override
    public String getHttpBaseUrl() {
        if("OFFICIAL".equals(MyApplication.getMetaData("serverType"))){
            return HttpRoot.SERVER_ROOT_OFFICIAL;
        }
        return HttpRoot.SERVER_ROOT;
    }

    @Override
    public String getUserId() {
        return null;
    }

    @Override
    public String getUserSSID() {
        return null;
    }

    @Override
    public Class<? extends Activity> getLoginClass() {
        return LoginActivity.class;
    }

}
